package com.chucang.shucang.pms.feign.vo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/12 11:29
 * @description
 */
@Data
public class PanicPurchaseVO implements Serializable {
    /**
     * 产品id
     */
    @NotNull(message = "商品id不能为空！")
    private Long productId;
    /**
     * 产品类型
     */
    @NotNull(message = "商品类型不能为空！")
    private Integer productType;
    /**
     * token
     */
    private String purchaseKey;
    /**
     * 购买量
     */
    @Max(value = 60, message = "最多购买60件")
    @Min(value = 1, message = "最少购买1件")
    private Integer purchaseNum;
}
